<!--

    Copyright (C) 2015 The Gravitee team (http://gravitee.io)

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<div class="step">
  <form [formGroup]="form" *ngIf="form" class="form step-grid-content">
    <div class="step-grid-column">
      <div class="form-control">
        <gv-input
          name="name"
          formControlName="name"
          ngDefaultControl
          required
          autofocus
          label="{{ 'applicationCreation.general.name.label' | translate }}"
          placeholder="{{ 'applicationCreation.general.name.placeholder' | translate }}"
        ></gv-input>
      </div>

      <div class="form-control">
        <gv-text
          name="description"
          formControlName="description"
          ngDefaultControl
          required
          rows="10"
          label="{{ 'applicationCreation.general.description.label' | translate }}"
          placeholder="{{ 'applicationCreation.general.description.placeholder' | translate }}"
        ></gv-text>
      </div>

      <div class="form-control">
        <gv-input
          name="domain"
          formControlName="domain"
          ngDefaultControl
          label="{{ 'applicationCreation.general.domain.label' | translate }}"
          placeholder="{{ 'applicationCreation.general.domain.placeholder' | translate }}"
        ></gv-input>
      </div>
    </div>
    <div class="step-grid-column">
      <div class="form-control">
        <gv-file-upload
          name="picture"
          formControlName="picture"
          ngDefaultControl
          accept="image/*"
          except=".svg"
          limit="500000"
          class="application-creation__avatar"
          [label]="'applicationCreation.general.image' | translate"
        >
        </gv-file-upload>
      </div>
    </div>
  </form>
</div>
